package com.clarence.dada.core.redis.start;


import com.clarence.dada.core.auth.entity.dto.PwdRsaSecretProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 密码认证配置
 *
 * @author fengshuonan
 * @since 2022/10/16 15:33
 */
@Configuration
public class GunsPasswordRsaPropAutoConfiguration {

    /**
     * 密码加密传输的配置，RSA加密密钥对
     *
     * @author fengshuonan
     * @since 2022/10/16 15:34
     */
    @Bean
    @ConfigurationProperties(prefix = "dada.password.rsa")
    public PwdRsaSecretProperties pwdRsaSecretProperties() {
        return new PwdRsaSecretProperties();
    }

}
